package cn.livingCloud.dto;

/**
 * 默认(预定义)触发器表达式
 * Created by 唐旭 on 2016/6/23.
 */
public enum DefaultCronExpression {
    DAY("0 0 12 * * ?", "每天"), WEEK("", "每周"), MONTH("", "每月");
    //名称
    private String name;
    //表达式
    private String expression;

    DefaultCronExpression(String expression, String name) {
        this.expression = expression;
        this.name = name;
    }

    public String getExpression() {
        return expression;
    }

    public DefaultCronExpression setExpression(String expression) {
        this.expression = expression;
        return this;
    }

    public String getName() {
        return name;
    }

    public DefaultCronExpression setName(String name) {
        this.name = name;
        return this;
    }
}
